Components.utils.import("resource://stmodules/Logger.jsm");

Components.utils.import("resource://reasonerExtensionModules/allReasonerRequest.jsm");

EXPORTED_SYMBOLS = [ "SemTurkeyHTTPLegacy", "Requests" ];

var service = Requests.GraphRequests;
var serviceName = service.serviceName;

function loadGraphRequest(fileToLoad){
    var fileName = "fileName="+fileToLoad;
    return SemTurkeyHTTPLegacy.GET(serviceName,service.loadGraph,fileName);
}

function loadListOfFile() {

    return SemTurkeyHTTPLegacy.GET(serviceName,service.loadListOfAviableGraph);
}
service.loadGraphRequest = loadGraphRequest
service.loadListOfFile = loadListOfFile